package com.mrent.web.form;

import java.util.ArrayList;
import java.util.List;

import org.springframework.web.multipart.MultipartFile;

public class MemberPhotoForm {

	private MultipartFile photoFile;


	public void setPhotoFile(MultipartFile photoFile) {
		this.photoFile = photoFile;
	}



	public MultipartFile[] getFiles() {
		List<MultipartFile> files = new ArrayList<MultipartFile>();
		if (photoFile != null) {
			files.add(photoFile);
		}
		return files.toArray(new MultipartFile[files.size()]);
	}

}
